package com.itheima.utils;

public class BaseContext {
    private static final ThreadLocal<Long> threadLocal = new ThreadLocal<>();

    public static Long getThreadLocalId() {
        return threadLocal.get();
    }

    public static void setThreadLocalId(Long id) {
        threadLocal.set(id);
    }
}
